home *** CD-ROM | disk | FTP | other *** search
- ;;**************************************************
- ;; Install of the software for dos/win
- ;;**************************************************
-
- DefineVariables
- Text [LogoBitMap] := zane.bmp
- Text [CompanyName] := Zane Entertainment
- Text [ProductName] := Cherry Poppers 1
- Text [ProductName5] := Install QuickTime
- Text [ProductName3] := Uninstall QuickTime
- Text [ProductName6] := Read Me
- Text [ReadFile] := readme.wri
- Text [ReadCmdLine]
- Text [IconFile] := zane.ico
- Text [IconFile3] := unqt.ico
- Text [IconFile5] := suqt.ico
- Text [IconPath]
- Text [IconPath2]
- Text [IconPath3]
- Text [IconPath5]
- Text [ReadPath]
- Text [ProgFile] := cherry.exe
- Text [ProgPath]
- Text [CDDr]
-
- EndDefineVariables
-
-
- ;; Setup logo and screen
- SetDefaultBitmap off
- LoadBitMap 1 [LogoBitMap]
- ShowBitMap 1 @xy(5,5)
- SetBackgroundColor 0 0 64 191 64 0
- ShowWindow Maximized
-
- Dialog
- Wait one moment please for the [ProductName] installation...
-
- We offer you the choice to (un)install QuickTime 2.0 separately.
- An icon for (un)installing QuickTime will be created in the
- [CompanyName] program group.
- EndDialog
-
- ;;************************************************
- ;; this is where we setup the directory for the
- ;; installation of the software. We install into the
- ;; bootdrive:\Qtime directory. This is hard coded
- ;; and must be named this for the Windows application
- ;; to read properly.
- ;;************************************************
- ;;[InstallationDirectory] := [BootDrive]:\QTW
- ;;CreateDirectoryIfNecessary [InstallationDirectory]
- ;;QueAllFiles
- ;;GetQuedFiles
-
- ;;**************************************************
- ;;Find the files for the program and icons
- ;;**************************************************
- [IconPath] := FullPathTo [IconFile] Search AllFixed
- [IconPath3] := FullPathTo [IconFile3] Search AllFixed
- [IconPath5] := FullPathTo [IconFile5] Search AllFixed
- [ProgPath] := FullPathTo [ProgFile] Search AllFixed
- [CDDr] := SubstringOf [IconPath] from 1 to 1
- [ReadPath] := FullPathTo [ReadFile] Search AllFixed
- [ReadCmdLine] := write.exe [ReadPath]
-
- ;;**************************************************
- ;; Create the windows program group.
- ;;**************************************************
- ProgramManagerDDe
- CreateGroup([CompanyName])
- ReplaceItem([CompanyName])
- AddItem([ProgPath],[ProductName],[IconPath])
- AddItem([CDDr]:\BIN\INSTLQT.EXE,[ProductName5],[IconPath5])
- AddItem([CDDr]:\BIN\BIN\UNSTLQT.EXE,[ProductName3],[IconPath3])
- AddItem([ReadCmdLine],[ProductName6],[IconPath2])
- EndProgramManagerDDE
-
-
- ;;**************************************************
- ;; Here is where we modify the Autoexec file for the
- ;; file paths
- ;;**************************************************
- ModifyAutoExecBat
- AddPathComponent [BootDrive]:\QTW at beginning
- EndModifyAutoExecBat
-
-
- ;; Exit dialog box and messages
- Dialog
- [ProductName] installation is complete.
-
- Additional information is being provided to you in the "[ProductName6]" file.
-
- Enjoy!
- EndDialog
-
- Procedure DDENonFatalErrorTrap
- ;; Purpose of DDENonFatalErrorTrap:
- ;; If a procedure with this name is present in the script and a non-fatal
- ;; Program Manager DDE error occurs, then this procedure will be executed.
- ;;
- ;; Possible Text Error Codes Are:
- ;; ddeExec%s failed (NOTE: the "%s" is replaced by error types)
- ;; ddeInitiate failed
- ;; pmAddItem failed
- ;; pmClose failed
- ;; pmCreateGroup failed
- ;;
- ;; To trap a DDENonFatalError and respond to it, use the following code
- ;; [Number1] := PositionOf "PMAddItem" in DDENonFatalError
- ;; If [Number1] > 0
- ;; Dialog
- ;; NonFatal error in AddItem occurred
- ;; Error Text : DDENonFatalError
- ;; EndDialog
- EndProcedure
-
- EndScript